package swagger.model;

import java.util.List;

public class CourseSwaggerModel extends SwaggerModelObject {

	private Integer courseId;
	
	private String courseName;
	
	private String describes;
	
	private Float totalSource;
	
	private Integer playCount;
	
	private Integer applyCount;
	
	private Float price;
	
	private List<ChapterSwaggerModel> chapters;
	
	private List<EvaluateSwaggerModel> evaluates;
	
	private String authUser;
	
	protected Object getId() {
		return courseId;
	}

	public Integer getEvaluateCount(){
		return null == evaluates || evaluates.isEmpty() ? 0 : evaluates.size();
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public Float getTotalSource() {
		return totalSource;
	}

	public void setTotalSource(Float totalSource) {
		this.totalSource = totalSource;
	}

	public Integer getPlayCount() {
		return playCount;
	}

	public void setPlayCount(Integer playCount) {
		this.playCount = playCount;
	}

	public Integer getApplyCount() {
		return applyCount;
	}

	public void setApplyCount(Integer applyCount) {
		this.applyCount = applyCount;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public List<ChapterSwaggerModel> getChapters() {
		return chapters;
	}

	public void setChapters(List<ChapterSwaggerModel> chapters) {
		this.chapters = chapters;
	}

	public List<EvaluateSwaggerModel> getEvaluates() {
		return evaluates;
	}

	public void setEvaluates(List<EvaluateSwaggerModel> evaluates) {
		this.evaluates = evaluates;
	}

	public String getAuthUser() {
		return authUser;
	}

	public void setAuthUser(String authUser) {
		this.authUser = authUser;
	}
}
